package com.atguigu.gulimail.product.service;

import com.atguigu.gulimail.product.vo.CataLog2Vo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimail.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author songshaoqiu
 * @email songshaoqiu@gmail.com
 * @date 2022-01-07 15:06:03
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

    Long[] getCatelogPath(Long categoryId);

    void updateDetil(CategoryEntity category);

    //获取一级分类目录
    List<CategoryEntity> getCategory1Level();

    Map<String, List<CataLog2Vo>> getCataLogJson();

    List<CategoryEntity> listR();

}

